package com.changgou.order.feign;

import com.changgou.entity.Result;
import com.changgou.order.pojo.Evaluate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "order")
public interface EvaluateFeign {

    @PostMapping(value = "/evaluate/search/{page}/{size}" )
    public Result findPage(@RequestBody Map searchMap, @PathVariable("page")  int page, @PathVariable("size")  int size);

    @PutMapping(value = "/evaluate/{id}")
    public Result update(@RequestBody Evaluate evaluate, @PathVariable("id") String id);
}
